<?php
session_start();
error_reporting(0);
include "../config/session.php";
if($_SESSION[login]==1){
	if(!cek_login()){
		$_SESSION[login] = 0;
	}
}
if($_SESSION[login]==0){
  header('location:logout.php');
}
else{
if (empty($_SESSION['username']) AND empty($_SESSION['passuser']) AND $_SESSION['login']==0){
  echo "<link href='style.css' rel='stylesheet' type='text/css'>
 <center>Untuk mengakses laman, Anda harus login <br>";
  echo "<a href=index.php><b>LOGIN</b></a></center>";
}
else{
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../config/css/mhs.css" rel="stylesheet" type="text/css" />
<link href="../config/css/thickbox.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../config/css/boxy.css"/>

  <script language="javascript" src="../config/js/jquery.js"></script>
  <script language="javascript" src="../config/js/thickbox.js"></script>
  <script language="javascript" src="../config/js/jquery.form.js"></script>
  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sistem Informasi Mahasiswa</title>
</head>
<body>
<div class="mhs_layout">
<div class="mhs_banner"></div>
<div class="mhs_conten">
  <div class="isi_content">
<?php include'conten.php'; ?>
</div>
<div class="mhs_footer">footer</div>
</div>
</div>
</body>
</html>
<? } } ?> 